import request from '@/utils/request'

// 查询商城积分列表
export function listPoints(query) {
  return request({
    url: '/partybuilding/MallPoints/listByUser',
    method: 'get',
    params: query
  })
}
// 查询商城积分详细
export function getPointsById(id) {
  return request({
    url: '/partybuilding/MallPoints/' + id,
    method: 'get'
  })
}

// 用户最新积分信息
export function topPoints(data) {
  return request({
    url: '/partybuilding/MallPoints/topPoints',
    method: 'get'
  })
}